<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('联系姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('手机号码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$row.mobile|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="shop_name" class="control-label col-xs-12 col-sm-2">{:__('店铺名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="shop_name" name="row[shop_name]" value="{$row.shop_name|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="shop_address" class="control-label col-xs-12 col-sm-2">{:__('店铺地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="shop_address" name="row[shop_address]"  value="{$row.shop_address|htmlentities}" data-rule="required" />
        </div>
    </div>

    <div class="form-group">
        <label for="sub_mch_id" class="control-label col-xs-12 col-sm-2">{:__('子商户号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sub_mch_id" name="row[sub_mch_id]"  value="{$row.sub_mch_id|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="sub_mch_name" class="control-label col-xs-12 col-sm-2">{:__('子商户全称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sub_mch_name" name="row[sub_mch_name]"  value="{$row.sub_mch_name|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-store_image" class="control-label col-xs-12 col-sm-2">{:__('店铺图片')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-store_image" data-rule="" class="form-control" size="50" name="row[store_image]" type="text" value="{$row.store_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-store_image" class="btn btn-danger faupload" data-input-id="c-store_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-store_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-store_image" class="btn btn-primary fachoose" data-input-id="c-store_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-store_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-store_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="commission" class="control-label col-xs-12 col-sm-2">{:__('平台分润（%）')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="commission" name="row[commission]"  value="{$row.commission|htmlentities}" data-rule="required" />
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="platform_commission" class="control-label col-xs-12 col-sm-2">{:__('商家优惠比例（%）')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="number" placeholder="商家最高比例30%" class="form-control" id="platform_commission" name="row[platform_commission]"  value="{$row.platform_commission|htmlentities}" data-rule="required;range(0~30)" />-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="intercept_password" class="control-label col-xs-12 col-sm-2">{:__('拦截口令')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="text" class="form-control" id="intercept_password" name="row[intercept_password]"  value="{$row.intercept_password|htmlentities}" data-rule="required" />-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="user_commission" class="control-label col-xs-12 col-sm-2">{:__('用户返佣%')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input type="number" class="form-control" id="user_commission" name="row[user_commission]"  value="{$row.user_commission|htmlentities}" data-rule="required" />-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', [1=>__('申请通过'), 2=>__('驳回'), 3=>__('待审核')], $row['status'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
